<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\Db;
/**
 * 首页接口
 */
class Index extends Api
{

    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 首页
     * 
     */
    public function index()
    {
        $data = Db::name('weixin')->find();
        dump($data);
//        $goods = new Goods();
//        $data = $goods->index();
//        if (!$data){
//            $this->error('请求失败');
//        }
//        $this->success('请求成功',$data);
    }






}
